package com.dao;

import java.sql.*;

//Cloudscape concrete DAO Factory implementation
public class JDBCDAOFactory extends DAOFactory{
	 
  public static final String DRIVER="jdbc:mysql://localhost:3306/pls";
  public static final String DBURL="jdbc:cloudscape:rmi://localhost:1099/CoreJ2EEDB";
 
  // method to create Cloudscape connections
  public static Connection doConnection() {
    // Use DRIVER and DBURL to create a connection
    // Recommend connection pool implementation/usage
	Connection conn = null;
	return conn;
  }
  public EmployeeDAO getEmployeeDAO() {
    // CloudscapeCustomerDAO implements CustomerDAO
    return new JDBCEmployeeDAO();
  }
  public SeatDAO getSeatDAO() {
    // CloudscapeAccountDAO implements AccountDAO
    return new JDBCSeatDAO();
  }
  public TicketDAO getTicketDAO() {
    // CloudscapeOrderDAO implements OrderDAO
    return new JDBCTicketDAO();
  }
@Override
public JDBCDAOFactory getJDBCDAO() {
	// TODO Auto-generated method stub
	return null;
}
	  

}
